package antlr4.definitive.d1_hello.d1_2_hello.run;

import antlr4.definitive.d1_hello.d1_2_hello.gen.HelloParser;
import antlr4.definitive.d1_hello.d1_2_hello.gen.HelloVisitor;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;

public class MyHelloVisitor extends AbstractParseTreeVisitor<String> implements HelloVisitor<String> {

    @Override public String visitR(HelloParser.RContext ctx) {
        System.out.println(ctx.getText());
        System.out.println(ctx.ID().getText());
        return visitChildren(ctx);
    }
}
